package edu.wpi.first.wpilibj.templates.commands;

public class DoWedgeMove extends CommandBase {
   
    private double Speed;
    
    public DoWedgeMove(double s) {
        this.Speed=s;
        requires(MyWedge);
    }

    protected void initialize() {
        //Stops wedge after 1 second
        this.setTimeout(1.0);
    }

    protected void execute() {
        MyWedge.Move(this.Speed);
    }
                
    protected boolean isFinished() {
        //Stops wedge
        return this.isTimedOut();
    }

    protected void end() {
    }

    protected void interrupted() {
    }
}